package cn.patient.pp.module.patients.dal.mysql.patients;

import cn.patient.pp.module.patients.controller.admin.vo.BigScreenReqVO;
import cn.patient.pp.module.patients.controller.admin.vo.binscreen.SpectedMentalDisorderVoDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface BigScreenMapper {

    Integer selectTotalDistinctPatients(@Param("reqVO") BigScreenReqVO reqVO);

    List<Map<String, Object>> selectTopThreeHospitals(@Param("reqVO") BigScreenReqVO reqVO);


    Integer countNewPatients(@Param("startTime") String startTime,
                             @Param("endTime") String endTime,
                             @Param("deptIds") List<Long> deptIds);


    Integer countIdentifiedNewPatients(@Param("startTime") String startTime,
                                       @Param("endTime") String endTime,
                                       @Param("deptIds") List<Long> deptIds);


    Integer countNewIdentifiedPatients(@Param("startTime") String startTime,
                                       @Param("endTime") String endTime,
                                       @Param("deptIds") List<Long> deptIds);

    Long suspectedMentalDisorder(@Param("startTime") String startTime,
                                                          @Param("endTime") String endTime,
                                                          @Param("deptIds") List<Long> deptIds);
}
